<template>
	<!-- <view class="content"> -->
	<view>
		<view class="headbg">
			<image class="headimg" src="../../static/mine/mine_headbg.png"></image>
		</view>
		<!-- 用户信息栏 -->
		<view class="userbox">
			<image src="../../static/mine/logo.png" class="traitimg"></image>
<!-- 				<image :src="isLogin ? userhead : ../../static/mine/logo.png" class="traitimg"></image> -->
			<text class="title">授权昵称</text>
		</view>
		<view class="asset">
			<view class="itemtitle" style="margin-bottom: 20rpx;">我的资产</view>
			<view class="row">
				<view class="item">
					<view class="image1">
						<image src="../../static/mine/mine_jifen.png"></image>
						<view class="itemtitle">积分</view>
					</view>
					<view class="image2">
						<image src="../../static/mine/mine_none.png"></image>
						<view class="text1">个未使用</view>
					</view>
				</view>
				<view class="item">
					<view class="image1">
						<image src="../../static/mine/mine_quan.png"></image>
						<view class="itemtitle">优惠券</view>
					</view>
					<view class="image2">
						<image src="../../static/mine/mine_none.png"></image>
						<view class="text1">张未使用</view>
					</view>
				</view>
			</view>
		</view>
		<view class="order">
			<view class="itemtitle" style="margin-bottom: 20rpx;">我的订单</view>
				<view class="row">
					<view class="item">
						<view class="orderimg">
							<image src="../../static/mine/mine_dingdan.png"></image>
						</view>
						<view class="itemtitle" style="size: 12rpx;">门店订单</view>
					</view>
				</view>
		</view>
		<view class="myfunction">
			<view class="itemtitle" style="margin-bottom: 20rpx;">我的功能</view>
				<view class="row">
					<view class="item">
						<view class="functionimg">
							<image src="../../static/mine/mine_dizhi.png"></image>
						</view>
						<view class="itemtitle" style="size: 12rpx;">我的地址</view>
					</view>
					<view class="item">
						<view class="functionimg">
							<image src="../../static/mine/mine_shangcheng.png"></image>
						</view>
						<view class="itemtitle" style="size: 12rpx;">积分商城</view>
					</view>
					<view class="item">
						<view class="functionimg">
							<image src="../../static/mine/mine_jixing.png"></image>
						</view>
						<view class="itemtitle" style="size: 12rpx;">积星有礼</view>
					</view>
				</view>
		</view>
		<view class="footerinfo">
			<view>
				<image class="imagelogo" src="../../static/mine/logo.png"></image>
			</view>
			<view class="text1">企迈提供技术支持</view>
		</view>
	</view>
</template>

<script>
	// import {mapState, mapGetters} from 'vuex'
	export default {
		data() {
			return {
			}
		},
		// computed{
		// 	...mapGetters({'isLogin'})
		// },
		onLoad() {

		},
		methods: {
		}
	}
</script>

<style lang="scss" scoped>
	page{/*背景颜色*/
		background-color: gainsboro;
		height: auto;
		min-height: 100%;
	}
	
	
	.headbg{
		position: relative;
	}
	
	.headimg{
		width: 100%;
		height: calc(410 / 594 * 750rpx);
	}
	
	/*用户信息栏*/
	.userbox{
		position: relative;
		display: flex;
		align-items: center;
		margin-bottom: 10rpx;
		margin-top: -50rpx;
		background-color: #ffffff;
		box-shadow: $box-shadow;
		border-radius: 14rpx;
		align-items: center;
		align-self: center;
	}
	
	.userinfo{
		
		background-color: #ffffff;
		display: flex;
		box-shadow: 0 0 20rpx rgba($color: #000000, $alpha: 0.2);
	}
	
	.traitimg{
		margin: 35rpx;
		border-radius: 50%;
		width: 80rpx;
		height:80rpx;
		image {
			padding-right: 35rpx;
		} 
	}
	
	.title{
		font-weight: 600;
		font-size: 32rpx;
	}
	
	.itemtitle{
		font-weight: 600;
		font-size: 28rpx;
	}
	
	.text1{
		color:gray;
		font-size: 10px;
	}
	
	/*我的资产*/
	.asset{
		width: 100%;
		background-color: #FFFFFF;
		padding: 32rpx 30rpx 10rpx;
		box-shadow: $box-shadow;
		/*一整行*/
		.row{
			display: flex;
			flex-wrap: wrap;
			color: $text-color-assist;
			font-size: $font-size-sm;
			padding-bottom: -40rpx;
			.itemtitle{
				font-weight: 600;
				font-size: 24rpx;
			}
			
			/*单个选项*/
			.item {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				margin-bottom: 30rpx;
				width: 25%;
				position: relative;		
				.image1 {
					display: flex;
					align-content: center;
					image {
						width: 36rpx;
						height: 36rpx;
						margin-right: 10rpx;
						margin-bottom: 10rpx;
					}
				}
				.image2{
					display: flex;
					align-content: center;
					image {
						width: 10rpx;
						height: 10rpx;
					}
				}
				.new-badage {
					width: 40rpx;
					height: 40rpx;
					position: absolute;
					top: 0;
					right: 30rpx;
				}
			}

		}
	}
	/*我的订单、我的功能*/
	.order{
		margin-top: 20rpx;
		width: 100%;
		background-color: #FFFFFF;
		padding: 32rpx 30rpx 10rpx;
		box-shadow: $box-shadow;
		
		.row{
			display: flex;
			flex-wrap: wrap;
			color: $text-color-assist;
			font-size: $font-size-sm;
			padding-bottom: -40rpx;
			
			.itemtitle{
				font-weight: 600;
				font-size: 24rpx;
			}
			
			.item {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				margin-bottom: 20rpx;
				width: 25%;
				position: relative;	
				
				.orderimg{
				padding: 10rpx;
					image{
						width: 50rpx;
						height: 50rpx;
					}
				}
			}
		}
	}
	
	.myfunction{
		margin-top: 20rpx;
		width: 100%;
		background-color: #FFFFFF;
		padding: 32rpx 30rpx 10rpx;
		box-shadow: $box-shadow;
		
		.row{
			display: flex;
			flex-wrap: wrap;
			color: $text-color-assist;
			font-size: $font-size-sm;
			padding-bottom: -40rpx;
			
			.item {
				display: flex;
				flex-direction: column;
				justify-content: center;
				align-items: center;
				margin-bottom: 20rpx;
				width: 25%;
				position: relative;	
				
				.functionimg{
				padding: 10rpx;
					image{
						width: 50rpx;
						height: 50rpx;
					}
				}
			}
		}
	}
	
	.footerinfo{
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		margin-top: 30rpx;
		.imagelogo {
			border-radius: 50%;
			width: 54rpx;
			height: 54rpx;
		}
	}
</style>